#ifndef CFRAME_H_
#define CFRAME_H_

#include "stdafx.h"

class CEvent;

class CFrame
{
private:
	RECT m_CollisionRect;
	RECT m_ImageRect;
	RECT m_HitRect;
	POINT m_ptAnchor;
	POINT m_ptRotation;
	vector<POINT*> m_vParticles;
	string m_trigger;
	float m_fDuration;

public:
	CFrame();
	~CFrame();

	//Accessors 
	RECT GetCollisionRect() {return m_CollisionRect;}
	RECT GetImageRect() {return m_ImageRect;}
	RECT GetHitRect() {return m_HitRect;}
	POINT GetAnchorPoint() {return m_ptAnchor;}
	POINT GetRotationPoint() {return m_ptRotation;}
	vector<POINT*>& GetParticles() {return m_vParticles;}
	float GetDuration() {return m_fDuration;}
	string GetEvent() {return m_trigger;}

	//Mutators
	void SetCollisionRect(RECT rect) {m_CollisionRect = rect;}
	void SetImageRect(RECT rect) {m_ImageRect = rect;}
	void SetHitRect(RECT rect) {m_HitRect = rect;}
	void SetAnchorPoint(POINT point) {m_ptAnchor = point;}
	void SetAnimationTrigger(string trigger) {m_trigger = trigger;}
	void SetDuration(float speed) {m_fDuration = speed;}
	void SetRotationPoint(POINT ptRotation) {m_ptRotation = ptRotation;}
	
};

#endif